package com.bupt.kgplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * User
 *
 * @author zrz
 * @date 2024/3/25
 * @time 11:48
 * @Description 用户
 */
@Data
@TableName("user")
@EqualsAndHashCode(callSuper = true)
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Integer id;


    private String userName;

    private Integer role;

    private String department;

    private String pwd;

    private String phoneNumber;
    private Integer age;
}
